package com.demo.service;

import com.demo.entity.Record;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ymj
 * @since 2020-11-23
 */
public interface RecordService extends IService<Record> {

    Long findTotalsByP_id(@Param("p_id") Long p_id);

    List<Record> findByPageByP_id(@Param("pageNow") Integer pageNow, @Param("pageSize") Integer pageSize, @Param("p_id") Long p_id);

    Long findTotalsByA_id(@Param("a_id") Long a_id);

    List<Record> findByPageByA_id(@Param("pageNow") Integer pageNow, @Param("pageSize") Integer pageSize, @Param("a_id") Long a_id);

    List<Record> findByPage(Integer pageNow, Integer pageSize);

    List<Record> findAll();
}
